package com.lmaye.design.patterns.creation.abstractfactory;

/**
 * -- HuaWeiFactory
 *
 * @author lmay.Zhou
 * @date 2020/11/16 21:19 星期一
 * @qq 379839355
 * @email lmay@lmaye.com
 * @since JDK1.8
 */
public class HuaWeiFactory implements IFactory {
    @Override
    public ICellPhone createCellPhone() {
        System.out.print("华为工厂制造手机 -> ");
        return new Mate40();
    }

    @Override
    public ILaptop createLaptop() {
        System.out.print("华为工厂制造笔记本电脑 -> ");
        return new MateBookX2020();
    }
}
